<template>
  <div :class="['popup-container', popupType == 'material'?'popup-container-material':'']">
    <meetingSummaryCom v-if="popupType =='summary'" :videoInfo="videoInfo" @formChildMsg='formChildData'></meetingSummaryCom>
    <downloadMaterialCom v-else :meetingMsg="meetingMsg" @formChildMsg='formChildData'></downloadMaterialCom>
  </div>
</template>

<script>
import meetingSummaryCom from '@/pages/liveRoomPages/components/meetingSummaryCom'//会议纪要弹出框
import downloadMaterialCom from '@/pages/liveRoomPages/components/downloadMaterialCom'//下载会议材料弹出框
export default {
  components: {
    meetingSummaryCom,
    downloadMaterialCom
  },
  props: {
    videoInfo: Object,
    popupType: String,
    meetingMsg: Object
  },
  methods: {
    formChildData(data) {
      if (data.type == 'closeVantPopup') {
        this.$emit("formChildMsg", {
          type: "closePopup",
        });
      } else if (data.type == 'closeApplyInfo') {
        this.$emit("formChildMsg", {
          type: "closePopup",
        });
        console.log(111);
      }
    }
  }
}
</script>

<style lang="less" scoped>
.popup-container{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
	width: 85%;
  height: 70%;
	overflow-y: auto;
  background: #FFFFFF;
	z-index: 1501;
	border-radius: 10px;
}
.popup-container-material{
  height: 30%;
}
</style>